<?php
# Database configuration

#$_DATABASE['TYPE'] = 'mysql';
#$_DATABASE['TAG']['PREFIX'] = 'cmspad_';

/**
 * Master can only execute the update sqls.
 * <ul>
 * 	<li>insert</li>
 * 	<li>update</li>
 * 	<li>delete</li>
 * </ul>
 */

#$_DATABASE['MASTER'][0]['HOST'] = '192.168.0.1';
#$_DATABASE['MASTER'][0]['PORT'] = 3306;
#$_DATABASE['MASTER'][0]['NAME'] = 'db1';
#$_DATABASE['MASTER'][0]['USER'] = 'user1';
#$_DATABASE['MASTER'][0]['PSWD'] = 'pswd1';

#$_DATABASE['MASTER'][0]['HOST'] = '192.168.0.2';
#$_DATABASE['MASTER'][0]['PORT'] = 3306;
#$_DATABASE['MASTER'][0]['NAME'] = 'db1';
#$_DATABASE['MASTER'][0]['USER'] = 'user2';
#$_DATABASE['MASTER'][0]['PSWD'] = 'pswd2';

/**
 * Slave can only execute the query sqls.
 * <ul>
 * 	<li>select</li>
 * </ul>
 */

#$_DATABASE['SLAVE'][0]['HOST'] = '192.168.0.1';
#$_DATABASE['SLAVE'][0]['PORT'] = 3306;
#$_DATABASE['SLAVE'][0]['NAME'] = 'db1';
#$_DATABASE['SLAVE'][0]['USER'] = 'user1';
#$_DATABASE['SLAVE'][0]['PSWD'] = 'pswd1';


#$_DATABASE['SLAVE'][0]['HOST'] = '192.168.0.3';
#$_DATABASE['SLAVE'][0]['PORT'] = 3306;
#$_DATABASE['SLAVE'][0]['NAME'] = 'db1';
#$_DATABASE['SLAVE'][0]['USER'] = 'user3';
#$_DATABASE['SLAVE'][0]['PSWD'] = 'pswd3';

/**
 * All database can execute the all sqls.
 */
#$_DATABASE['BOTH'][0]['HOST'] = 'localhost';
#$_DATABASE['BOTH'][0]['PORT'] = 3306;
#$_DATABASE['BOTH'][0]['NAME'] = 'db1';
#$_DATABASE['BOTH'][0]['USER'] = 'user1';
#$_DATABASE['BOTH'][0]['PSWD'] = 'pswd1';

/**
 * Or you can use single database mode
 */
#$_DATABASE['HOST'] = 'localhost';
#$_DATABASE['PORT'] = 3306;
#$_DATABASE['NAME'] = 'db1';
#$_DATABASE['USER'] = 'user1';
#$_DATABASE['PSWD'] = 'pswd1';

// Mailer: SMTP configuration 
#$_CONFIG['MAIL']['HOST'] = 'smtp.gmail.com';
#$_CONFIG['MAIL']['PORT'] = 465;
#$_CONFIG['MAIL']['USER'] = 'webmaster@cmspad.com';
#$_CONFIG['MAIL']['PSWD'] = '1234567890';
#$_CONFIG['MAIL']['FROM'] = 'CMSPAD Offical';
#$_CONFIG['MAIL']['ADDR'] = 'webmaster@cmspad.com';
#$_CONFIG['MAIL']['UTLS'] = true;

// Cache Engine: common
#$_CONFIG['CACHE']['TYPE'] = 'file';
#$_CONFIG['CACHE']['TIME'] = 60;

// Cache Engine: File system
#$_CONFIG['CACHE']['FILE']['PATH'] = 'cache';

// Cache Engine: Database
#$_CONFIG['CACHE']['DATABASE']['TABLE'] = 'cmspad_system_cache';
#$_CONFIG['CACHE']['DATABASE']['KEYCOL'] = 'sc_key';
#$_CONFIG['CACHE']['DATABASE']['VALCOL'] = 'sc_val';
#$_CONFIG['CACHE']['DATABASE']['TTLCOL'] = 'sc_ttl';

// Cache Engine: Memcache
#$_CONFIG['CACHE']['MEMCACHE']['HOST'] = 'localhost';
#$_CONFIG['CACHE']['MEMCACHE']['PORT'] = 11211;
#$_CONFIG['CACHE']['MEMCACHE']['TIMEOUT'] = 30;

// URL Dispatcher: common
#$_CONFIG['DISPATCH']['PORTAL'] = 'Portal';
#$_CONFIG['DISPATCH']['ROUTER'] = 'default';
#$_CONFIG['DISPATCH']['SCRIPT'] = cmspad_relative2relative('../');
#$_CONFIG['DISPATCH']['ALIAS']['hello2'] = 'SimplePortlet.helloWorld';
#$_CONFIG['DISPATCH']['ALIAS']['simple'] = 'SimplePortlet';

// System config
#$_CONFIG['SYSTEM']['TIMEZONE'] = 'Asia/Shanghai';
#$_CONFIG['SYSTEM']['LANGUAGE'] = 'zh-cn';
#$_CONFIG['SYSTEM']['USE_GZIP'] = true;
#$_CONFIG['SYSTEM']['LIFETIME'] = 86400;

// Logging: Common
#$_CONFIG['LOGGING']['TYPE'] = 'file';
#$_CONFIG['LOGGING']['EXIT'] = false;
#$_CONFIG['LOGGING']['SHOW'] = 'CMSPAD Error';

// Logging: File
#$_CONFIG['LOGGING']['PATH'] = CMSPAD_ABSPATH.'log/';
#$_CONFIG['LOGGING']['FILE'] = 'cmspad.log';
#$_CONFIG['LOGGING']['SIZE'] = 1024 * 1024;
#$_CONFIG['LOGGING']['LOOP'] = 'day';
#$_CONFIG['LOGGING']['LEVEL'] = E_ERROR;
#$_CONFIG['LOGGING']['PATTERN'] = '%d %t [%p][%f:%l] %m';
#$_CONFIG['LOGGING']['DATE_FORMAT'] = 'Y-m-d';
#$_CONFIG['LOGGING']['TIME_FORMAT'] = 'H:i:s';
?>